﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CricketAdmin.master" AutoEventWireup="true"
    CodeFile="EdiAdminBetting.aspx.cs" Inherits="EditAdminBetting" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="container-fluid">
        <h3 class="page-title">
            Add match<small></small>
        </h3>
        <%--<ul class="breadcrumb">
            <li><i class="icon-home"></i>Home<span class="icon-angle-right"> </span></li>
            <li>Match<span class="icon-angle-right"></span></li>
            <li>Add Match</li>
        </ul>--%>
        <br />
        <div class="alert alert-danger" id="layerError" runat="server" style="display: none;">
        </div>
        <div class="alert alert-success" id="layerSuccess" runat="server" style="display: none;">
        </div>
        <div class="row-fluid">
            <div class="span12">
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Edit Admin Betting</div>
                    </div>
                    <div class="portlet-body form">
                        <div class="form-horizontal form-view">
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Admin <span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:DropDownList ID="drpAdmin" runat="server">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please select admin."
                                                InitialValue="0" ValidationGroup="EditAdmin" CssClass="required" ControlToValidate="drpAdmin"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Match <span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:DropDownList ID="drpMatch" runat="server">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please select match"
                                                InitialValue="0" ValidationGroup="EditAdmin" CssClass="required" ControlToValidate="drpMatch"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span6">
                                    <div class="control-group">
                                        <label class="control-label">
                                            Type <span class="required">*</span></label>
                                        <div class="controls">
                                            <asp:DropDownList ID="drpType" runat="server">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please select type"
                                                InitialValue="0" ValidationGroup="EditAdmin" CssClass="required" ControlToValidate="drpType"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-actions">
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn red" ValidationGroup="EditAdmin"
                                    OnClick="btnSubmit_Click" />
                            </div>
                            <table class="table table-striped table-hover table-bordered" id="sample_editable_1">
                                <thead>
                                    <tr>
                                        <th>
                                            Id
                                        </th>
                                        <th>
                                            Over
                                        </th>
                                        <th>
                                            Lagadi
                                        </th>
                                        <th>
                                            Khadhi
                                        </th>
                                        <th>
                                            Team
                                        </th>
                                        <th>
                                            Action
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="rptAdmin" runat="server" OnItemCommand="rptAdmin_ItemCommand" OnItemDataBound="rptAdmin_ItemDataBound">
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblId" runat="server" Text='<%#Eval("Id") %>'></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="lblOver" runat="server" Enabled="false" Text='<%#Eval("Over") %>'></asp:TextBox>
                                                </td>
                                                <td class="center">
                                                    <asp:TextBox ID="lblLagadi" runat="server" Enabled="false" Text='<%#Eval("LagadiRate") %>'></asp:TextBox>
                                                </td>
                                                <td class="center">
                                                    <asp:TextBox ID="lblKhadhi" runat="server" Enabled="false" Text='<%#Eval("Khadhirate") %>'></asp:TextBox>
                                                </td>
                                                <td class="center">
                                                    <asp:TextBox ID="TeamId" runat="server" Enabled="false" Text='<%#Eval("TeamId") %>'></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Button ID="btnEdit" runat="server" CssClass="btn blue" Text="Edit" CommandName="EditAdmin" />
                                                    &nbsp;
                                                    <asp:Button ID="btnUpdate" runat="server" CssClass="btn blue" Text="Update" CommandName="UpdateAdmin" />
                                                    &nbsp;
                                                    <asp:Button ID="btnDelete" runat="server" CssClass="btn red" Text="Delete" CommandName="DeleteAdmin" />
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
